#!/usr/bin/env bash

##########发布到线【下】服务器##########

#打包
npm run build:local

TAR_DIR_NAME=./ewt-view
TAR_TARGET=./ewt-view.tar.gz

#打包成tar压缩包
tar -zcvf $TAR_TARGET $TAR_DIR_NAME

#上传至远程服务器
scp $TAR_TARGET work@39.100.202.234:~/html
